<template>
  <div id="app">
    <ul>
      <li>
        <router-link to="/">Home</router-link>
      </li>
      <li>
        <router-link to="/about">About</router-link>
      </li>
      <li>
        <router-link to="/post-list">Post-List</router-link>
      </li>
    </ul>
    <router-view></router-view>
  </div>
</template>

<script>
export default {
  name: 'App',
  data() {
    return {
      message: '拉钩教育',
      count: 0
    }
  },
  methods: {
    onClick(){
      console.log('点击事件： ', this.count++)
      let pro = new Promise((resolve, reject) => {
        setTimeout(() => {
          resolve(5)
        }, 1000);
      })
      pro.then(console.log)
    }
  }
}
</script>